home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 114_01.zip / EDEXT.CC < prev    next >
Text File  |  1993-06-01  |  2KB  |  66 lines

  1. /*
  2.  * Screen editor:  external definitions
  3.  *
  4.  * Source: edext.cc
  5.  * Version: May 15, 1980.
  6.  *
  7.  */
  8.  
  9. /* define statics for the command module -- ed3.cc */
  10.  
  11. char filename[SYSFNMAX];    /* file name for (re)save */
  12.  
  13. /* define statics for the window module -- ed4.cc */
  14.  
  15. char    editbuf[MAXLEN]; /* the edit buffer */
  16. int    editp;        /* cursor: buffer index */
  17. int    editpmax;    /* length of buffer */
  18. int    edcflag;    /* buffer change flag */
  19.  
  20. /* define statics for the format module -- ed5.cc */
  21.  
  22. int fmttab;        /* max length of tab character */
  23. int fmtdev;        /* device -- YES/NO = LIST/CONSOLE */
  24. int fmtwidth;        /* devide width.  LISTW/SCRNW1 */
  25.  
  26. /* fmtcol[i] is the first column at which buf[i] is printed.
  27.  * fmtsub() and fmtlen() assume fmtcol[] is valid on entry.
  28.  */
  29.  
  30. int fmtcol[MAXLEN1];
  31.  
  32. /* define statics for the terminal module -- ed6.ccc */
  33.  
  34. int outx, outy;        /* coordinates of the cursor */
  35.  
  36. /* define statics for the prompt line module -- ed7.cc */
  37.  
  38. char pmtln[MAXLEN];    /* mode */
  39. char pmtfn[SYSFNMAX];    /* file name */
  40.  
  41. /* define statics for the operating system module -- ed8.cc */
  42.  
  43. /* constants defined in bdscio.h -----
  44. #define NSECTS 8
  45. #define SECSIZ 128
  46. #define BUFSIZ    (NSECTS * SECSIZ + 6)
  47. ----- */
  48.  
  49. int  iormode;        /* YES if file is read mode */
  50. char iobuf1[BUFSIZ];    /* file buffer */
  51.  
  52. /* define statics for the buffer module -- ed10.cc */
  53.  
  54. /*
  55.  * buffer[] must be the last external variable and it must
  56.  * have a nonzero dimension.
  57.  */
  58.  
  59. int bufcflag;        /* main buffer changed flag */
  60. char *bufp;        /* start of current line */
  61. char *bufpmax;        /* end of last line */
  62. char *bufend;        /* last byte of buffer */
  63. int bufline;        /* current line number */
  64. int bufmaxln;        /* number of lines in buffer */
  65. char buffer[1];        /* start of buffer */
  66.